package cn.wk.basic.utils;

import lombok.Data;

@Data
public class AjaxResult {

    private Boolean success = true;

    private String message = "处理成功";

    //用来响应后端的结果值
    private Object resultObj;

    public AjaxResult() {
    }

    public AjaxResult(String message){
        this.success = false;
        this.message = message;
    }

    public static AjaxResult me(){
        return new AjaxResult();
    }

    public AjaxResult setResultObj(Object resultObj){
        this.resultObj = resultObj;
        return this;
    }
}
